home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 050a.dms / 050a.adf / TEXTS / chapter06.txt < prev    next >
Text File  |  1992-02-26  |  4KB  |  150 lines

  1.                      The Absolute Beginners Guide To Amos
  2.                     -------------------------------------
  3.                                  Chapter Six
  4.                                  -----------
  5. In this chapter I think it`s necessary to have a brief look back at all of
  6. the commands we have covered so far.
  7.  
  8. I think you will be surprised at just how much you have learnt already.  
  9. Below is roughly what your note book should look like, but more detailed.  
  10. You have been taking notes haven`t you?
  11.  
  12. Please note the following is not a program.
  13.  
  14. :          : A colon, used to separate commands on one line
  15.  
  16. `          : Apostrophe, similar use as REM but only at the start of a line
  17.  
  18. $          : denotes a string e.g. A$  F$  FRED$  GO$
  19.  
  20. CURS OFF   : Turn the text cursor off
  21.  
  22. CURS ON    : Switch the text cursor on
  23.  
  24. CLS N      : Clear the screen using the colour N (0-15 default)
  25.  
  26. DEC        : Subtract 1 from a variable e.g. DEC A
  27.  
  28. EDIT       : Return to the EDITor from your program
  29.  
  30. FSEL$ etc. : Call up the Amos file selector for the user to load/save a file
  31.  
  32. FOR NEXT   : A looping structure, executes commands in-between FOR and NEXT
  33.  
  34. HIDE       : HIDE the mouse pointer from view
  35.  
  36. IF THEN    : IF a statement is true THEN execute the following commands
  37.  
  38. INC        : Add 1 to a variable e.g. INC A
  39.  
  40. LINE INPUT : Receive text or number INPUT from keyboard as a variable
  41.  
  42. LOAD IFF   : LOAD an IFF picture from disk
  43.  
  44. PAPER N    : The background colour of any text PRINTed onto the screen
  45.  
  46. PRINT      : PRINT "TEXT"   PRINT variable  or PRINT variable$
  47.  
  48. REM        : Short for REMark, used to add comments to listings. See also `
  49.  
  50. Variable   : A name holding a value that can be changed e.g. A=10
  51.  
  52. Variable$  : A name for holding a string of characters e.g. "TEXT12345£%"
  53.  
  54. WAIT KEY   : WAIT for the user to press any KEY before continuing
  55.  
  56.  
  57. If at this stage you fully understand half or more of the above then you are
  58. doing extremely well. If you think you understand less than half then re-read
  59. the previous chapters and look in your Amos manual for more info.
  60.  
  61. The first version of Basic I tried to learn was on the Commodore Vic 20, 
  62. remember that great machine? Anyway the Vic 20 came with a programming 
  63. course on audio tape as well as a programs tape and on the audio tape was a 
  64. spoken quiz to test yourself on what you should have previously learnt from 
  65. the course.  This really helped me to learn a lot more than just reading 
  66. about it.  We don`t have an audio tape with this course so we will have to 
  67. make do with you reading it out to yourselves. I suppose I could of got Amos
  68. to read out the questions to you, but those commands come in a later chapter.
  69. By the way you can use your notes if you wish. 
  70.  
  71. So, without further ado, here is the first of our Absolute Beginners Quizzes.
  72.  
  73. Q1 . What does the N in CLS N stand for?
  74.  
  75.   a) Nothing
  76.   b) A colour number 
  77.   c) Node activated
  78.  
  79.  
  80. Q2 . What does the PAPER command effect?
  81.  
  82.   a) The background colour of any text printed
  83.   b) The foreground colour of any text printed
  84.   c) The actual colour of any text printed
  85.  
  86.  
  87. Q3 . What is the opposite command to HIDE?
  88.  
  89.   a) Seek        
  90.   b) Slide
  91.   c) Show
  92.  
  93.  
  94. Q4 . What is wrong with the following line?   
  95.      PRINT "HELLO
  96.  
  97.   a) The second quote mark is missing
  98.   b) The first quote shouldn`t be there
  99.   c) You cannot PRINT the word HELLO
  100.  
  101.  
  102. Q5 . What is the WAIT KEY command waiting for the user to press? 
  103.  
  104.   a) The Mouse 
  105.   b) Any key
  106.   c) The Joystick
  107.  
  108.  
  109. Q6 . What type of variable is A$?
  110.  
  111.   a) A string variable
  112.   b) A numerical variable
  113.   c) A transitional coagulating dot matrix turbo vector variable
  114.  
  115.  
  116. Q7 . What does the LOAD IFF command achieve?
  117.  
  118.   a) Loads an IFF picture
  119.   b) Erases an IFF picture
  120.   c) Saves an IFF sample
  121.  
  122.  
  123. Q8 . If A=5 and the next line reads, A=A+7, what does A now equal?
  124.  
  125.   a)  5
  126.   b) 12
  127.   c) -5
  128.  
  129. Q9 . What would the value of A be after the following lines?
  130.      A=1     
  131.      IF A=1 THEN  DEC A 
  132.  
  133.   a) 0
  134.   b) 1
  135.   c) 2
  136.  
  137.  
  138. Q10. What is wrong with the following line?
  139.      PRINT "HELLO": REM just a remark here  :PRINT "AMOS"
  140.  
  141.   a) The word AMOS won`t be printed because of the REM
  142.   b) Hello will never be printed because of the REM
  143.   c) The REM will be printed
  144.      
  145. Mark down a, b or c for each answer and check them against the answers given
  146. in chapter seven.
  147.  
  148.                              End of chapter six
  149.                              ^^^^^^^^^^^^^^^^^^
  150.